package day30ver2;

public class RunnableEx implements Runnable {
	public String name;
	public RunnableEx(String name){
		this.name= name;
		try{
			Thread t= new Thread(this);
			t.start();
		}catch(Exception ex){
			
		}
	}
	
	
	@Override
	public void run() {
		for(int  i=1; i<=100; i++){
			System.out.println(name + " : "+ i);
		try{
			Thread.sleep(20);
		}catch(Exception ex){
		}
		}
	}

	public static void main(String[] args) {
		RunnableEx r1= new RunnableEx("첫번째 작업");
		RunnableEx r2= new RunnableEx("첫번째 작업");
		RunnableEx r3= new RunnableEx("첫번째 작업");
		RunnableEx r4= new RunnableEx("첫번째 작업");
		
	}

}
